//
//  Framework for a raytracer
//  File: sphere.h
//
//  Created for the Computer Science course "Introduction Computer Graphics"
//  taught at the University of Groningen by Tobias Isenberg.
//
//  Authors:
//    Maarten Everts
//    Jasper van de Gronde
//	  Zhe Sun
//
//  This framework is inspired by and uses code of the raytracer framework of 
//  Bert Freudenberg that can be found at
//  http://isgwww.cs.uni-magdeburg.de/graphik/lehre/cg2/projekt/rtprojekt.html 
//

#ifndef SPHERE_H_115209AE
#define SPHERE_H_115209AE

#include "object.h"

class Sphere : public Object
{
public:
    Sphere(Point position,double r, double angle) : position(position), r(r), angle(angle) { }

    virtual Hit intersect(const Ray &ray);
	virtual void mapCoord(Point p, double* u, double* v);
  virtual void updateMotionPostion(Vector v, double speed, double t);
//     virtual bool isEdge(const Ray &ray);
    Point position;
    const double r;
	const double angle;

};

#endif /* end of include guard: SPHERE_H_115209AE */
